Resource Class |
Namespace: Independentsoft.Webdav
The Resource type exposes the following members.
| Name | Description | |
|---|---|---|
| Resource |
Initializes a new instance of the Resource class.
| |
| Resource(String) |
Initializes a new instance of the Resource class specified by address.
| |
| Resource(WebdavSession) |
Initializes a new instance of the Resource class.
| |
| Resource(WebdavSession, String) |
Initializes a new instance of the Resource class.
|
| Name | Description | |
|---|---|---|
| Address |
Gets or sets the URI of the resource.
| |
| AllowAutoRedirect |
Gets or sets a value that indicates whether the request should follow redirection responses.
| |
| AllowBuffering |
Gets or sets a value that indicates whether to buffer the data sent to the Internet resource.
| |
| ClientCertificate |
Gets or sets the security client certificate.
| |
| ContentType |
Gets or sets the value of the Content-Type HTTP header.
| |
| Cookies |
Gets or sets the collection of cookies.
| |
| HttpWebRequest |
Gets underlying HttpWebRequest object.
| |
| HttpWebResponse |
Gets the latest response.
| |
| KeepAlive |
Gets or sets a value indicating whether to make a persistent connection.
| |
| PreAuthenticate |
Gets or sets a value indicating whether to send a authenticate header with the request.
| |
| RequestHeader |
Gets or sets the custom request header.
| |
| SendChunked |
Gets or sets a value indicating whether to send data in segments to the Internet resource.
| |
| Session |
Gets or sets the WebdavSession of the resource.
| |
| SetContentLength |
Gets or sets a value indicating whether to set ContentLength property for underlying HttpWebRequest.
| |
| Timeout |
Gets or sets the time-out value for a request.
| |
| UnsafeAuthenticatedConnectionSharing |
Gets or sets a value that indicates whether to allow high-speed NTLM-authenticated connection sharing.
| |
| UserAgent |
Gets or sets the value of the User-Agent HTTP header.
|
| Name | Description | |
|---|---|---|
| ChangeProperty(Property, Property) |
Sets (adds) and removes properties to/from a resource.
| |
| ChangeProperty(Property, PropertyName) |
Sets (adds) and removes properties to/from a resource.
| |
| ChangeProperty(String, Property, Property) |
Sets (adds) and removes properties to/from a resource.
| |
| ChangeProperty(String, Property, PropertyName) |
Sets (adds) and removes properties to/from a resource.
| |
| Copy(String, String) |
Copies an existing resource to a new resource.
Overwriting a existing resource is not allowed.
| |
| Copy(String, String, Boolean) |
Copies an existing resource to a new resource.
Overwriting a existing resource is allowed if parameter overwrite is true.
| |
| Copy(String, String, Boolean, Boolean) |
Copies an existing resource to a new resource.
Overwriting a existing resource is allowed if parameter overwrite is true.
| |
| CreateCollection |
Create a collection with the given URI. The method is same as CreateFolder.
| |
| CreateFolder |
Create a folder with the given URI. The method is same as CreateCollection.
| |
| Delete |
Deletes the current resource.
| |
| Delete(String) |
Deletes the resource specified with URI.
| |
| Download(String, Stream) |
Downloads data from a resource with the specified URI (address) to a stream.
| |
| Download(String, String) |
Downloads data from a resource with the specified URI (address) to a local file.
| |
| Download(String, Stream, Int32) |
Downloads data from a resource with the specified URI (address) to a stream.
| |
| Download(String, String, Int32) |
Downloads data from a resource with the specified URI (address) to a local file.
| |
| DownloadFile(String, Stream) |
Downloads data from a resource with the specified URI (address) to a stream.
| |
| DownloadFile(String, String) |
Downloads data from a resource with the specified URI (address) to a local file.
| |
| DownloadFile(String, Stream, Int32) |
Downloads data from a resource with the specified URI (address) to a stream.
| |
| DownloadFile(String, String, Int32) |
Downloads data from a resource with the specified URI (address) to a local file.
| |
| Equals | (Inherited from Object.) | |
| Exists |
Determines whether the specified resource exists.
| |
| Exists(String) |
Determines whether the specified resource exists.
| |
| Finalize | (Inherited from Object.) | |
| GetAllowedMethods |
Gets the all allowed methods.
| |
| GetAllowedMethods(String) |
Gets the all allowed methods.
| |
| GetHashCode | (Inherited from Object.) | |
| GetInputStream |
Returns the data stream from the resource.
| |
| GetInputStream(String) |
Returns the data stream from the resource.
| |
| GetLock |
Gets the locks that exist on this resource.
| |
| GetLock(String) |
Gets the locks that exist on this resource.
| |
| GetOutputStream |
Returns a Stream for writing data to the resource.
| |
| GetOutputStream(String) |
Returns a Stream for writing data to the resource.
| |
| GetProperties |
Gets all properties from the resource.
| |
| GetProperties(String) |
Gets all properties from the resource.
| |
| GetProperties(String, String) |
Gets all properties from the resource.
| |
| GetProperties(PropertyName, String) |
Gets properties from a resource.
| |
| GetProperties(String, PropertyName, String) |
Gets properties from a resource.
| |
| GetPropertiesAsXml |
Gets all properties from the resource.
| |
| GetPropertiesAsXml(String) |
Gets all properties from the resource.
| |
| GetProperty(String) |
Gets the property from a resource.
| |
| GetProperty(PropertyName) |
Gets the property from a resource.
| |
| GetProperty(String, PropertyName) |
Gets the property from a resource.
| |
| GetProperty(String, String) |
Gets the property from a resource.
| |
| GetPropertyNames |
Gets all properties names from a resource.
| |
| GetPropertyNames(String) |
Gets all properties names from a resource.
| |
| GetPropertyNames(String, String) |
Gets all properties names from a resource.
| |
| GetRequest |
Gets the HttpWebRequest object for the current HTTP request.
| |
| GetSize |
Gets size of resource.
| |
| GetSize(String) |
Gets size of resource.
| |
| GetSupportedDavLevel |
Gets the DAV header value.
| |
| GetSupportedDavLevel(String) |
Gets the DAV header value.
| |
| GetSupportedLock |
Gets the supportedlock property value.
| |
| GetSupportedLock(String) |
Gets the supportedlock property value.
| |
| GetType | (Inherited from Object.) | |
| Head |
Executes HEAD Http protocol method.
| |
| Head(String) |
Executes HEAD Http protocol method.
| |
| IsCollection |
Returns a boolean indicating whether this resource is a collection.
| |
| IsCollection(String) |
Returns a boolean indicating whether this resource is a collection.
| |
| IsLocked |
Returns a boolean indicating whether this resource is locked.
| |
| IsLocked(String) |
Returns a boolean indicating whether this resource is locked.
| |
| List |
Displays a list of resource URLs.
| |
| List(Boolean) |
Displays a list of resource URLs.
| |
| List(String) |
Displays a list of resources in a collection.
| |
| List(String, PropertyName) |
Displays a list of ResourceInfo.
| |
| List(String, Boolean) |
Displays a list of resource URLs.
| |
| List(String, PropertyName, Boolean) |
Displays a list of ResourceInfo.
| |
| ListWithProperties(PropertyName) | Obsolete.
Displays a list of subresources and their name and properties.
| |
| ListWithProperties(String, PropertyName) | Obsolete.
Displays a list of subresources and their name and properties.
| |
| ListWithProperties(PropertyName, Boolean) | Obsolete.
Displays a list of subresources and their name and properties.
| |
| ListWithProperties(String, PropertyName, Boolean) | Obsolete.
Displays a list of subresources and their name and properties.
| |
| Lock |
Lock the current resource.
| |
| Lock(Int32) |
Lock a resource based on the given parameters.
| |
| Lock(String) |
Lock a resource based on the given parameters.
| |
| Lock(ActiveLock) |
Lock a resource based on the given parameters.
| |
| Lock(String, ActiveLock) |
Lock a resource based on the given parameters.
| |
| Lock(String, Int32) |
Lock a resource based on the given parameters.
| |
| Lock(String, String) |
Lock a resource based on the given parameters.
| |
| Lock(String, String, Int32) |
Lock a resource based on the given parameters.
| |
| Lock(String, String, String) |
Lock a resource based on the given parameters.
| |
| MemberwiseClone | (Inherited from Object.) | |
| Move(String, String) |
Moves a specified source resource to a destination resource.
Overwriting existing resource is not allowed.
| |
| Move(String, String, Boolean) |
Moves a specified source resource to a destination resource.
| |
| Options |
Executes OPTIONS Http protocol method.
| |
| Options(String) |
Executes OPTIONS Http protocol method.
| |
| RefreshLock(ActiveLock) |
Refresh the lock on this resource by resetting the lock timeout.
| |
| RefreshLock(Int32, ActiveLock) |
Refresh the lock on this resource by resetting the lock timeout.
| |
| RefreshLock(Int32, String) |
Refresh the lock on this resource by resetting the lock timeout.
| |
| RefreshLock(String, Int32, ActiveLock) |
Refresh the lock on a resource by resetting the lock timeout.
| |
| RefreshLock(String, Int32, String) |
Refresh the lock on this resource by resetting the lock timeout.
| |
| RefreshLock(String, String, ActiveLock) |
Refresh the lock on a resource by resetting the lock timeout.
| |
| RefreshLock(String, String, String) |
Refresh the lock on this resource by resetting the lock timeout.
| |
| RemoveProperty(String) |
Removes the property from the resource.
| |
| RemoveProperty(Property) |
Remove a property from a resource.
| |
| RemoveProperty(PropertyName) |
Remove a property from a resource.
| |
| RemoveProperty(PropertyName) |
Remove a property from a resource.
| |
| RemoveProperty(String, Property) |
Remove a property from a resource.
| |
| RemoveProperty(String, Property) |
Remove a property from a resource.
| |
| RemoveProperty(String, PropertyName) |
Remove a property from a resource.
| |
| RemoveProperty(String, PropertyName) |
Remove a property from a resource.
| |
| RemoveProperty(String, String) |
Remove a property from a resource.
| |
| RemoveProperty(String, String, String) |
Remove a property from a resource.
| |
| SetProperty(Property) |
Sets a property on a resource.
| |
| SetProperty(Property) |
Sets a property on a resource.
| |
| SetProperty(String, Property) |
Sets a property on a resource.
| |
| SetProperty(String, Property) |
Sets a property on a resource.
| |
| SetProperty(String, String) |
Sets a property on a resource.
| |
| SetProperty(Property, Property) |
Sets (adds) and removes properties to/from a resource.
| |
| SetProperty(Property, PropertyName) |
Sets (adds) and removes properties to/from a resource.
| |
| SetProperty(String, Property, Property) |
Sets (adds) and removes properties to/from a resource.
| |
| SetProperty(String, Property, PropertyName) |
Sets (adds) and removes properties to/from a resource.
| |
| SetProperty(String, String, String) |
Sets a property on a resource.
| |
| SetProperty(String, String, String, String) |
Sets a property on a resource.
| |
| ToString | (Inherited from Object.) | |
| Unlock |
Unlock the lock on this resource.
| |
| Unlock(String) |
Unlock the lock on the resource identifies by address.
| |
| Unlock(ActiveLock) |
Unlock the lock on this resource.
| |
| Unlock(ActiveLock) |
Unlock the locks on this resource.
| |
| Unlock(String, ActiveLock) |
Unlock the lock on a resource.
| |
| Unlock(String, ActiveLock) |
Unlock the locks on a resource.
| |
| Unlock(String, String) |
Unlock the lock identified by the lockToken on this resource.
| |
| Upload(String, Stream) |
Uploads a data from stream a resource with the specified URI.
| |
| Upload(String, String) |
Uploads a local file to a resource with the specified URI.
| |
| Upload(String, Stream, ContentRange) |
Uploads a data from stream a resource with the specified URI.
| |
| Upload(String, Stream, Int32) |
Uploads a data from stream a resource with the specified URI.
| |
| Upload(String, String, ContentRange) |
Uploads a local file to a resource with the specified URI.
| |
| Upload(String, String, Int32) |
Uploads a local file to a resource with the specified URI.
| |
| Upload(String, Stream, Int32, ContentRange) |
Uploads a data from stream a resource with the specified URI.
| |
| Upload(String, String, Int32, ContentRange) |
Uploads a local file to a resource with the specified URI.
| |
| UploadFile(String, String) |
Uploads a local file to a resource with the specified URI.
| |
| UploadFile(String, String, ContentRange) |
Uploads a local file to a resource with the specified URI.
| |
| UploadFile(String, String, Int32) |
Uploads a local file to a resource with the specified URI.
| |
| UploadFile(String, String, Int32, ContentRange) |
Uploads a local file to a resource with the specified URI.
|
| Name | Description | |
|---|---|---|
| DownloadProgress |
Occurs to indicate the progress of an download operation.
| |
| UploadProgress |
Occurs to indicate the progress of an upload operation.
|
NetworkCredential credential = new NetworkCredential("Administrator","password123"); WebdavSession session = new WebdavSession(credential); Resource resource = new Resource(session);